home *** CD-ROM | disk | FTP | other *** search
/ Champak 83 / (Vol 83) My Disc.iso / Games / hello_kitty.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2008-08-07  |  1.1 KB  |  44 lines

  1. fscommand("allowscale",true);
  2. myMap1 = [[5,5,5,5,5,5,5,5,5,5],[5,5,5,5,5,5,5,5,5,5],[5,5,1,1,1,1,1,1,5,5],[5,5,1,0,0,1,0,1,5,5],[5,5,1,0,0,0,2,1,5,5],[5,5,1,0,0,1,0,1,5,5],[5,5,1,1,1,1,1,1,5,5],[5,5,5,5,5,5,5,5,5,5],[5,5,5,5,5,5,5,5,5,5]];
  3. game = {tileW:45,tileH:45,currentMap:1,points:false};
  4. game.Tile0 = function()
  5. {
  6. };
  7. game.Tile0.prototype.walkable = true;
  8. game.Tile0.prototype.frame = 1;
  9. game.Tile1 = function()
  10. {
  11. };
  12. game.Tile1.prototype.walkable = false;
  13. game.Tile1.prototype.frame = 2;
  14. game.Tile2 = function()
  15. {
  16. };
  17. game.Tile2.prototype.walkable = false;
  18. game.Tile2.prototype.frame = 3;
  19. game.Tile5 = function()
  20. {
  21. };
  22. game.Tile5.prototype.walkable = false;
  23. game.Tile5.prototype.frame = 5;
  24. unlockY = 4;
  25. unlockX = 6;
  26. char = {xtile:3,ytile:4,speed:3};
  27. startingXtile = char.xtile;
  28. startingYtile = char.ytile;
  29. myEnemies = [[1,4,4]];
  30. game.Enemyp1 = function()
  31. {
  32. };
  33. game.Enemyp1.prototype.xMove = 0;
  34. game.Enemyp1.prototype.yMove = -1;
  35. game.Enemyp1.prototype.speed = 0.5;
  36. myItems = [[1,3,3]];
  37. game.Item1 = function()
  38. {
  39. };
  40. game.Item1.prototype.points = false;
  41. unlock = true;
  42. _root.buildMap(_root["myMap" + game.currentMap]);
  43. stop();
  44.